{extend name="default/search/frame" /}
{block name="style"}
<link rel="stylesheet" type="text/css" href="{$Think.const.STATIC_ROOT}/css/skin/search/main.css"/>
<style>
    em{
        color: #d53800;
        font-style: normal;
        font-weight: 700;
    }
</style>
{/block}
{block name="body"}
<section class="o__searchBar">
    <div class="o__searchBar">
        <div class="container">
            <div class="searchBox">
                <div class="searchContent">
                    <form action="#">
                        <input name="keyword" value="{$keyword}">
                        <button type="submit" class="searchbtn">全站搜索</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>
<section class="o__main">
    <div class="o__main">
        <div class="container">
            <div class="listContent">
                <div class="searchResult">
                    <p>已为您找到约{$count}条相关结果</p>
                </div>
                {volist name="thread_list" id="thread"}
                <div class="listContentItem">
                    <h3 class="itemTitle"><a href="threads/view?id={$thread['id']}">{$thread['title']}</a></h3>
                    <div class="itemInfo">{$thread['descrip']}</div>
                    <div class="itemInfoFooter">
                        <span>{$thread['time']}</span>
                        <span>阅读量：{$thread['view']}</span>
                    </div>
                </div>
                {/volist}
            </div>
            <div class="listRight clearfloat">
                <div class="listRightHead">
                    <h2>最新发布</h2>
                    <a href="#" class="formore">更多</a>
                </div>
                <div class="listRightContent">
                    {volist name="new" id="new"}
                    <div class="listRightItem">
                        <a href="threads/view?id={$new['id']}" class="listRightItem__coverimg"><img src="{$new['coverimg']}" alt=""></a>
                        <div class="listRightItem__content">
                            <a href="threads/view?{$new['id']}" class="listRightItem__tit">{$new['title']}</a>
                            <span class="listRightItem__date">{$new['time']}</span>
                        </div>
                    </div>
                    {/volist}
                </div>
            </div>
            {$multipage}
        </div>
    </div>
</section>

{/block}